add_library(FTD2XX_LIB STATIC IMPORTED)
set_target_properties(FTD2XX_LIB PROPERTIES IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/lib/libftd2xx-static.a)

file(GLOB SOURCES "src/*.c")

add_library(mmwftdi STATIC ${SOURCES})

target_include_directories(mmwftdi PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)

target_link_libraries(mmwftdi PRIVATE FTD2XX_LIB)
